initialize
Initializes the control with its associated module context.
This method is typically called once before the control is first used or made active. It allows the control to set up its internal state, resources, and prepare for operation based on the provided data.
If #isAutoStart() is true, implementations might also trigger their start logic within or immediately after initialization.
Initializes the slideshow view.This method is called by the player to initialize the module.
The method performs the following actions:
- Gets the current device time.
- Creates a date comparator for comparing dates only (ignoring time).
- Iterates through the module options and sets the scale type and transition duration based on the option values.
- If the module has a playlist, iterates through the sources in the playlist and checks if each source is expired based on its start and end dates.
- Posts a delayed runnable to the handler to update the slideshow after 100 milliseconds.
Parameters
module
The module to initialize.